# Maintainer: Alexey Pavlov <alexpux@gmail.com>

pkgname=msys2-keyring
pkgver=r9.397a52e
pkgrel=1
pkgdesc='MSYS2 PGP keyring'
arch=('any')
groups=('base')
url='https://github.com/Alexpux/MSYS2-keyring'
license=('GPL')
install="${pkgname}.install"
makedepends=("git")
source=(${pkgname}::"git+https://github.com/Alexpux/MSYS2-keyring.git")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "${srcdir}/${pkgname}"
  make PREFIX=/usr DESTDIR=${pkgdir} install
}
